export const getWeather = () =>{
	return new Promise((res, rej) => {
		uni.request({
			url: 'https://restapi.amap.com/v3/weather/weatherInfo?',
			method: 'GET',
			data: {
				city: "510117",
				key: "952d49e010b40faad51be562503cb9b7"
			},
			header:{

			},
			success(responese) {
				res(responese)
			},
			fail() {
				uni.showToast({
					title: '数据获取失败',
					icon: 'err'
				})
			}
		})
	})
}

export const getWater1= () =>{
	return new Promise((res, rej) => {
		uni.request({
			url: 'https://v0.yiketianqi.com/api?',
			method: 'GET',
			data: {
				version: "v11",
				appid:"94482325",
				appsecret:"hh94QTnw",
				lng:"104.05299382617189",
				lat:"30.768528196504032"
			},
			header:{

			},
			success(responese) {
				res(responese)
			},
			fail() {
				uni.showToast({
					title: '数据获取失败',
					icon: 'err'
				})
			}
		})
	})
}

export const getWater2= () =>{
	return new Promise((res, rej) => {
		uni.request({
			url: 'https://v0.yiketianqi.com/api?',
			method: 'GET',
			data: {
				version: "v11",
				appid:"97129277",
				appsecret:"VsV8e0zc",
				lng:"104.05299382617189",
				lat:"30.768528196504032"
			},
			header:{

			},
			success(responese) {
				res(responese)
			},
			fail() {
				uni.showToast({
					title: '数据获取失败',
					icon: 'err'
				})
			}
		})
	})
}

export const getWater3= () =>{
	return new Promise((res, rej) => {
		uni.request({
			url: 'https://v0.yiketianqi.com/api?',
			method: 'GET',
			data: {
				version: "v11",
				appid:"97129277",
				appsecret:"L5S1ourm",
				lng:"104.05299382617189",
				lat:"30.768528196504032"
			},
			header:{

			},
			success(responese) {
				res(responese)
			},
			fail() {
				uni.showToast({
					title: '数据获取失败',
					icon: 'err'
				})
			}
		})
	})
}
export const getSunLight= () =>{
	return new Promise((res, rej) => {
		uni.request({
			url: 'https://console-mock.apipost.cn/app/mock/project/e236aa01-b5a4-4ada-c7e2-82fff9a01451/getsunlight',
			method: 'GET',
			data: {
				
			},
			header:{

			},
			success(responese) {
				res(responese)
			},
			fail() {
				uni.showToast({
					title: '数据获取失败',
					icon: 'err'
				})
			}
		})
	})
}